package com.example.java;

import java.util.Date;

public class Obj implements Cloneable {
	private Date birth = new Date();
	
	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	public void changeBr(){
		birth.setMonth(4);
	}
	
	protected Object clone(){
		Obj oo = null;
		
		try {
			oo = (Obj) super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		oo.birth = (Date) this.getBirth().clone();
		return oo;
		
	}
	
}
